/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import db.DBConnection;
import java.sql.SQLException;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import ui.gui.MainMenu;

/**
 *
 * @author Mads Nielsen
 */
public class Application {

    public static void main(String[] args) {

        try {
            // Tries to make the java interface match the systems
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch(Exception e) {
            System.err.println("Could not load system look and feel");
        }

        Locale.setDefault(new Locale("da", "DK"));
        try {
            DBConnection.getInstance().openConnection();
        } catch (SQLException ex) {
            Logger.getLogger(Application.class.getName()).log(Level.SEVERE, null, ex);
        }

        new MainMenu().setVisible(true);
    }
}
